|
|
|
|
|
|
|
Along the same lines, a user accidentally may delete a database file, leading to the necessity to create a new one. |
|
|
|
|
|
|
|
|
Another benefit occurs when you distribute updates to the program. With changes embedded in a program, your user merely can run the update program to change the file structure. He or she doesn't need to reload data into a new, blank file. Also, by modifying the file in place, you can preserve most structure changes in the database made by the end user. |
|
|
|
|
|
|
|
|
Another reason for putting database creation and maintenance commands in a program is for performance considerations. Sometimes it is desirable, from a performance standpoint, to create a temporary table to speed up a program or to store intermediate results, and then delete the table at the completion of the program. You also might want to create a temporary index that creates a specific order or speeds up a search. |
|
|
|
|
|
|
|
|
In this chapter, you learned how to design and create a database for use in an application. To use the database, however, you must write a database access application. This topic is covered in other chapters of the book. For further information, refer to the following chapters: |
|
|
|
|
|
|
|
|
To learn how to use Visual Basic's Data control in conjunction with other controls to quickly create applications to work with databases, see Chapter 25, "The Data Control and Data-Bound Controls." |
|
|
|
|
|
|
|
|
For more advanced database programming techniques, see Chaper 26, " Using Data Access Objects (DAO)," and Chapter 27, " Using Remote Data Objects (RDO)." |
|
|
|
|
|
|
|
|
For a discussion of Microsoft's newest way of connecting your programs to databases, see Chapter 28, "Using ActiveX Data Objects (ADO)." |
|
|
|
|
|